Cerca negli script per "swing trading"
Machine Learning BBPct [BackQuant]Machine Learning BBPct
What this is (in one line)
A Bollinger Band %B oscillator enhanced with a simplified K-Nearest Neighbors (KNN) pattern matcher. The model compares today’s context (volatility, momentum, volume, and position inside the bands) to similar situations in recent history and blends that historical consensus back into the raw %B to reduce noise and improve context awareness. It is informational and diagnostic—designed to describe market state, not to sell a trading system.
Background: %B in plain terms
Bollinger %B measures where price sits inside its dynamic envelope: 0 at the lower band, 1 at the upper band, ~ 0.5 near the basis (the moving average). Readings toward 1 indicate pressure near the envelope’s upper edge (often strength or stretch), while readings toward 0 indicate pressure near the lower edge (often weakness or stretch). Because bands adapt to volatility, %B is naturally comparable across regimes.
Why add (simplified) KNN?
Classic %B is reactive and can be whippy in fast regimes. The simplified KNN layer builds a “nearest-neighbor memory” of recent market states and asks: “When the market looked like this before, where did %B tend to be next bar?” It then blends that estimate with the current %B. Key ideas:
• Feature vector . Each bar is summarized by up to five normalized features:
– %B itself (normalized)
– Band width (volatility proxy)
– Price momentum (ROC)
– Volume momentum (ROC of volume)
– Price position within the bands
• Distance metric . Euclidean distance ranks the most similar recent bars.
• Prediction . Average the neighbors’ prior %B (lagged to avoid lookahead), inverse-weighted by distance.
• Blend . Linearly combine raw %B and KNN-predicted %B with a configurable weight; optional filtering then adapts to confidence.
This remains “simplified” KNN: no training/validation split, no KD-trees, no scaling beyond windowed min-max, and no probabilistic calibration.
How the script is organized (by input groups)
1) BBPct Settings
• Price Source – Which price to evaluate (%B is computed from this).
• Calculation Period – Lookback for SMA basis and standard deviation.
• Multiplier – Standard deviation width (e.g., 2.0).
• Apply Smoothing / Type / Length – Optional smoothing of the %B stream before ML (EMA, RMA, DEMA, TEMA, LINREG, HMA, etc.). Turning this off gives you the raw %B.
2) Thresholds
• Overbought/Oversold – Default 0.8 / 0.2 (inside ).
• Extreme OB/OS – Stricter zones (e.g., 0.95 / 0.05) to flag stretch conditions.
3) KNN Machine Learning
• Enable KNN – Switch between pure %B and hybrid.
• K (neighbors) – How many historical analogs to blend (default 8).
• Historical Period – Size of the search window for neighbors.
• ML Weight – Blend between raw %B and KNN estimate.
• Number of Features – Use 2–5 features; higher counts add context but raise the risk of overfitting in short windows.
4) Filtering
• Method – None, Adaptive, Kalman-style (first-order),
or Hull smoothing.
• Strength – How aggressively to smooth. “Adaptive” uses model confidence to modulate its alpha: higher confidence → stronger reliance on the ML estimate.
5) Performance Tracking
• Win-rate Period – Simple running score of past signal outcomes based on target/stop/time-out logic (informational, not a robust backtest).
• Early Entry Lookback – Horizon for forecasting a potential threshold cross.
• Profit Target / Stop Loss – Used only by the internal win-rate heuristic.
6) Self-Optimization
• Enable Self-Optimization – Lightweight, rolling comparison of a few canned settings (K = 8/14/21 via simple rules on %B extremes).
• Optimization Window & Stability Threshold – Governs how quickly preferred K changes and how sensitive the overfitting alarm is.
• Adaptive Thresholds – Adjust the OB/OS lines with volatility regime (ATR ratio), widening in calm markets and tightening in turbulent ones (bounded 0.7–0.9 and 0.1–0.3).
7) UI Settings
• Show Table / Zones / ML Prediction / Early Signals – Toggle informational overlays.
• Signal Line Width, Candle Painting, Colors – Visual preferences.
Step-by-step logic
A) Compute %B
Basis = SMA(source, len); dev = stdev(source, len) × multiplier; Upper/Lower = Basis ± dev.
%B = (price − Lower) / (Upper − Lower). Optional smoothing yields standardBB .
B) Build the feature vector
All features are min-max normalized over the KNN window so distances are in comparable units. Features include normalized %B, normalized band width, normalized price ROC, normalized volume ROC, and normalized position within bands. You can limit to the first N features (2–5).
C) Find nearest neighbors
For each bar inside the lookback window, compute the Euclidean distance between current features and that bar’s features. Sort by distance, keep the top K .
D) Predict and blend
Use inverse-distance weights (with a strong cap for near-zero distances) to average neighbors’ prior %B (lagged by one bar). This becomes the KNN estimate. Blend it with raw %B via the ML weight. A variance of neighbor %B around the prediction becomes an uncertainty proxy ; combined with a stability score (how long parameters remain unchanged), it forms mlConfidence ∈ . The Adaptive filter optionally transforms that confidence into a smoothing coefficient.
E) Adaptive thresholds
Volatility regime (ATR(14) divided by its 50-bar SMA) nudges OB/OS thresholds wider or narrower within fixed bounds. The aim: comparable extremeness across regimes.
F) Early entry heuristic
A tiny two-step slope/acceleration probe extrapolates finalBB forward a few bars. If it is on track to cross OB/OS soon (and slope/acceleration agree), it flags an EARLY_BUY/SELL candidate with an internal confidence score. This is explicitly a heuristic—use as an attention cue, not a signal by itself.
G) Informational win-rate
The script keeps a rolling array of trade outcomes derived from signal transitions + rudimentary exits (target/stop/time). The percentage shown is a rough diagnostic , not a validated backtest.
Outputs and visual language
• ML Bollinger %B (finalBB) – The main line after KNN blending and optional filtering.
• Gradient fill – Greenish tones above 0.5, reddish below, with intensity following distance from the midline.
• Adaptive zones – Overbought/oversold and extreme bands; shaded backgrounds appear at extremes.
• ML Prediction (dots) – The KNN estimate plotted as faint circles; becomes bright white when confidence > 0.7.
• Early arrows – Optional small triangles for approaching OB/OS.
• Candle painting – Light green above the midline, light red below (optional).
• Info panel – Current value, signal classification, ML confidence, optimized K, stability, volatility regime, adaptive thresholds, overfitting flag, early-entry status, and total signals processed.
Signal classification (informational)
The indicator does not fire trade commands; it labels state:
• STRONG_BUY / STRONG_SELL – finalBB beyond extreme OS/OB thresholds.
• BUY / SELL – finalBB beyond adaptive OS/OB.
• EARLY_BUY / EARLY_SELL – forecast suggests a near-term cross with decent internal confidence.
• NEUTRAL – between adaptive bands.
Alerts (what you can automate)
• Entering adaptive OB/OS and extreme OB/OS.
• Midline cross (0.5).
• Overfitting detected (frequent parameter flipping).
• Early signals when early confidence > 0.7.
These are purely descriptive triggers around the indicator’s state.
Practical interpretation
• Mean-reversion context – In range markets, adaptive OS/OB with ML smoothing can reduce whipsaws relative to raw %B.
• Trend context – In persistent trends, the KNN blend can keep finalBB nearer the mid/upper region during healthy pullbacks if history supports similar contexts.
• Regime awareness – Watch the volatility regime and adaptive thresholds. If thresholds compress (high vol), “OB/OS” comes sooner; if thresholds widen (calm), it takes more stretch to flag.
• Confidence as a weight – High mlConfidence implies neighbors agree; you may rely more on the ML curve. Low confidence argues for de-emphasizing ML and leaning on raw %B or other tools.
• Stability score – Rising stability indicates consistent parameter selection and fewer flips; dropping stability hints at a shifting backdrop.
Methodological notes
• Normalization uses rolling min-max over the KNN window. This is simple and scale-agnostic but sensitive to outliers; the distance metric will reflect that.
• Distance is unweighted Euclidean. If you raise featureCount, you increase dimensionality; consider keeping K larger and lookback ample to avoid sparse-neighbor artifacts.
• Lag handling intentionally uses neighbors’ previous %B for prediction to avoid lookahead bias.
• Self-optimization is deliberately modest: it only compares a few canned K/threshold choices using simple “did an extreme anticipate movement?” scoring, then enforces a stability regime and an overfitting guard. It is not a grid search or GA.
• Kalman option is a first-order recursive filter (fixed gain), not a full state-space estimator.
• Hull option derives a dynamic length from 1/strength; it is a convenience smoothing alternative.
Limitations and cautions
• Non-stationarity – Nearest neighbors from the recent window may not represent the future under structural breaks (policy shifts, liquidity shocks).
• Curse of dimensionality – Adding features without sufficient lookback can make genuine neighbors rare.
• Overfitting risk – The script includes a crude overfitting detector (frequent parameter flips) and will fall back to defaults when triggered, but this is only a guardrail.
• Win-rate display – The internal score is illustrative; it does not constitute a tradable backtest.
• Latency vs. smoothness – Smoothing and ML blending reduce noise but add lag; tune to your timeframe and objectives.
Tuning guide
• Short-term scalping – Lower len (10–14), slightly lower multiplier (1.8–2.0), small K (5–8), featureCount 3–4, Adaptive filter ON, moderate strength.
• Swing trading – len (20–30), multiplier ~2.0, K (8–14), featureCount 4–5, Adaptive thresholds ON, filter modest.
• Strong trends – Consider higher adaptive_upper/lower bounds (or let volatility regime do it), keep ML weight moderate so raw %B still reflects surges.
• Chop – Higher ML weight and stronger Adaptive filtering; accept lag in exchange for fewer false extremes.
How to use it responsibly
Treat this as a state descriptor and context filter. Pair it with your execution signals (structure breaks, volume footprints, higher-timeframe bias) and risk management. If mlConfidence is low or stability is falling, lean less on the ML line and more on raw %B or external confirmation.
Summary
Machine Learning BBPct augments a familiar oscillator with a transparent, simplified KNN memory of recent conditions. By blending neighbors’ behavior into %B and adapting thresholds to volatility regime—while exposing confidence, stability, and a plain early-entry heuristic—it provides an informational, probability-minded view of stretch and reversion that you can interpret alongside your own process.
MA 50/150Simple MA at 50 and 150. Important levels, especially looking at the 1-Day chart, for momentum and swing trading equities and ETFs.
Market Structure Trend Change by TenAMTraderMarket Structure Trend Change Indicator
Description:
This indicator detects changes in market trend by analyzing swing highs and lows to identify Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), and Lower Lows (LL). It helps traders quickly see potential reversals and trend continuation points.
Features:
Automatically identifies pivots based on configurable left and right bars.
Labels pivot points (HH, HL, LH, LL) directly on the chart (text-only for clarity).
Generates buy and sell signals when a trend change is detected:
Buy Signal: HL after repeated LLs.
Sell Signal: LH after repeated HHs.
Fully customizable signal appearance: arrow type, circle, label, color, and size.
Adjustable minimum number of repeated highs or lows before a trend change triggers a signal.
Alerts built in for automated notifications when buy/sell signals occur.
Default Settings:
Optimized for a 10-minute chart.
Default “Min repeats before trend change” and pivot left/right bars are set for typical 10-min price swings.
User Customization:
Adjust the “Pivot Left Bars,” “Pivot Right Bars,” and “Min repeats before trend change” to match your trading style, chart timeframe, and volatility.
Enable pivot labels for visual clarity if desired.
Set alerts to receive notifications of trend changes in real time.
How to Use:
Apply the indicator to any chart and timeframe. It works best on swing-trading or trend-following strategies.
Watch for Buy/Sell signals in conjunction with your other analysis, such as volume, support/resistance, or other indicators.
Legal Disclaimer:
This indicator is provided for educational and informational purposes only. It is not financial advice. Trading involves substantial risk, and past performance is not indicative of future results. Users should trade at their own risk and are solely responsible for any gains or losses incurred.
DRKSCALPER Strategy"This indicator is designed to help traders identify market structure shifts, order blocks, and liquidity zones. It is useful for scalping and swing trading, and works on multiple timeframes."
Nifty Power -> Nifty 50 chart + EMA of RSI + avg volume strategyThis strategy works in 1 hour candle in Nifty 50 chart. In this strategy, upward trade takes place when there is a crossover of RSI 15 on EMA50 of RSI 15 and volume is greater than volume based EMA21. On the other hand, lower trade takes place when RSI 15 is less than EMA50 of RSI 15. Please note that there is no stop loss given and also that the trade will reverse as per the trend. Sometimes on somedays, there will be no trades. Also please note that this is an Intraday strategy. The trade if taken closes on 15:15 in Nifty 50. This strategy can be used for swing trading. Some pine script code such as supertrend and ema21 of close is redundant. Try not to get confused as only EMA50 of RSI 15 is used and EMA21 of volume is used. I am using built-in pinescript indicators and there is no special calculation done in the pine script code. I have taken numbars variable to count number of candles. For example, if you have 30 minuite chart then numbars variable will count the intraday candles accordingly and the same for 1 hour candles.
Close Just Above 44MA with Uptrendpine editor code for indicator to identify stocks whose price closes just above MA 44 with MA 44 trending up on a daily chart for swing trading
Camarilla Levels Pro Camarilla Levels Pro – Precision Intraday & Swing Trading Tool
Unlock the full potential of Camarilla Pivot Levels for identifying high-probability reversal zones, breakout triggers, and intraday bias shifts.
This indicator automatically calculates L1–L5 levels based on the Camarilla formula, updating daily for precise market adaptation. Whether you’re trading futures, forex, stocks, or crypto, you’ll instantly see:
Reversal Zones – Where price historically reacts and traps traders.
Breakout Zones – L4/L5 for bullish breakouts, L3/L2 for bearish reversals.
Bias Shifts – Quickly gauge if the market is leaning long or short.
Custom Alerts – Get notified when price touches or breaks your chosen level.
Features:
Auto-adjusting Camarilla levels for any symbol & timeframe
Color-coded zones for instant visual recognition
Optional mid-levels for scalpers
Fully customizable styling to match your chart setup
Ideal for:
Day traders wanting precision entry/exit zones
Swing traders watching key daily pivot breaks
Scalpers looking for high-probability reaction points
Triple EMA with Alert | 21, 50, 200 EMA Strategy + Crossover🚀 Boost your trading edge with the Triple EMA with Alert — a professional-grade indicator designed for traders who want precise, real-time trend confirmation across short, medium, and long-term market movements.
🔹 What Makes This Indicator Powerful?
Three Adjustable EMAs — Default: 21, 50, 200 periods (fully customizable 1–200).
Toggle Visibility — Show only the EMAs you need for your strategy.
Real-Time Alerts — Get notified instantly when:
EMA 1 crosses EMA 2 → short-term trend change.
EMA 2 crosses EMA 3 → medium-term trend alignment.
Works on All Markets & Timeframes — Forex, crypto, stocks, indices, and commodities.
🔹 Why Traders Love It
📊 Multi-Timeframe Trend Confirmation — Filter out noise and trade with market momentum.
🎯 Accurate Crossover Signals — Identify bullish and bearish momentum shifts.
🔔 Hands-Free Monitoring — Alerts keep you informed even when you’re away from the chart.
💡 Versatile for Any Strategy — Perfect for scalping, swing trading, or long-term investing.
🔹 How to Use It
Bullish Signal — EMA 1 crossing above EMA 2 or EMA 2 crossing above EMA 3.
Bearish Signal — EMA 1 crossing below EMA 2 or EMA 2 crossing below EMA 3.
Combine with support/resistance zones, RSI, or volume for higher probability trades.
📌 Pro Tip:
Use EMA 21 & EMA 50 for momentum confirmation.
Use EMA 200 to spot the overall market direction.
If you’re serious about trend trading with precision, the Triple EMA with Alert will keep you one step ahead of market moves — no more missed entries or exits.
Enhanced RSI KDE | Advanced FiltersThis is an enhanced version of the excellent RSI (Kernel Optimized) indicator originally created by @fluxchart. Full credit goes to fluxchart for the innovative KDE (Kernel Density Estimation) concept and the solid foundation that made this enhancement possible.
🙏 CREDITS & ACKNOWLEDGMENTS
Original Creator: @fluxchart - RSI (Kernel Optimized)
Original Concept: Kernel Density Estimation applied to RSI pivot analysis
Enhancement: Advanced filtering system and signal optimization- profitgang
License: Mozilla Public License 2.0
🚀 WHAT'S NEW IN THIS ENHANCED VERSION
Building upon fluxchart's brilliant KDE RSI foundation, this version adds:
🔥 Advanced Filtering System:
Multi-Timeframe Confluence - Confirms signals across higher timeframes
Volume Confirmation - Only signals on above-average volume
Volatility Range Filter - Avoids signals in choppy or extreme conditions
Trend Context Analysis - Considers overall market direction
Adaptive Pivot Detection - Adjusts sensitivity based on market volatility
🎯 Signal Quality Improvements:
Confluence Scoring - Each signal gets a quality score (1-6)
Label Cooldown System - Prevents chart clutter with smart spacing
Higher Activation Thresholds - More selective signal generation
Risk Management Integration - Auto stop-loss and take-profit levels
📊 Enhanced Dashboard:
Real-time filter status monitoring
KDE probability percentages
Confluence scores for both directions
Volume and volatility readings
⚙️ HOW IT WORKS
The indicator maintains fluxchart's core KDE methodology:
Collects RSI values at historical pivot points
Creates probability density functions using Gaussian/Uniform/Sigmoid kernels
Identifies high-probability zones for potential reversals
NEW: Multiple filters must align before generating signals, dramatically reducing false positives while maintaining the accuracy of high-probability setups.
🎛️ RECOMMENDED SETTINGS
Confluence Score: 5/6 (very selective)
Activation Threshold: Medium or High
Multi-Timeframe: Enabled with 2/2 alignment
Volume Filter: Enabled (1.5x threshold)
All other filters: Enabled for maximum quality
📈 BEST USE CASES
Swing Trading - Higher timeframe confirmation reduces whipsaws
Quality over Quantity - Fewer but much higher probability signals
Risk Management - Built-in stop/target levels for each signal
Multi-Asset Analysis - Works on stocks, crypto, forex, commodities
⚠️ IMPORTANT NOTES
This is a quality-focused indicator - expect fewer but better signals
Backtest thoroughly on your specific assets and timeframes
The original fluxchart indicator remains excellent for different trading styles
Consider this an alternative approach, not a replacement
🤝 COLLABORATION & FEEDBACK
Special thanks to @fluxchart for creating the original innovative KDE RSI concept. This enhancement wouldn't exist without that solid foundation.
Feel free to suggest improvements or share your results! The goal is to build upon great work in the community.
Wolf Exit Oscillator Enhanced
# Wolf Exit Oscillator Enhanced
## What it is (quick take)
**Wolf Exit Oscillator Enhanced** is a clean, rules-first **exit timing tool** built on the **True Strength Index (TSI)** with two optional safeguards:
1. **Signal-line crossover** (to avoid bailing on shallow dips), and
2. **EMA confirmation** (price-based “is the trend actually weakening/strengthening?” check).
Use it to standardize when you **take profits, cut losers, or scale out**—especially after momentum runs hot or cold.
> Works best **paired** with:
>
> * **ABS NR — Fail-Safe Confirm (v4.2.2)** for entries
> * **ABS Companion Oscillator — Trend / Exhaustion / New Trend** for trend/exhaustion context
---
## How to use it (operational workflow)
1. **Set your bands**
* `exitHigh` and `exitLow` mark “overcooked” zones on the TSI scale (default: +60 / –60).
* Above `exitHigh` = momentum stretched **up** (good place to **exit shorts** or **take long profits**).
* Below `exitLow` = momentum stretched **down** (good place to **exit longs** or **take short profits**).
2. **Choose strictness**
* **Base mode**: the moment TSI crosses out of a band, you get an exit signal.
* **Add Signal-Line Cross** (`enableSignalX = true`): require TSI to cross its signal in the same direction → **fewer, cleaner exits**.
* **Add EMA Filter** (`enableEMAFilter = true`): also require **price** to confirm (e.g., long exit only if price < EMA). This avoids bailing during healthy trends.
3. **Execute with structure**
* **Full exit** when a signal fires, or
* **Scale out** (e.g., 50% on first signal, remainder on trail/secondary signal), or
* **Move stop** to lock gains once an exit signal prints.
4. **Alerts**
* Set to **“Once per bar close”** to avoid intrabar flip-flop.
* Use the two provided alert names for automation (see “Alerts” below).
---
## Signals & visuals
* **TSI line** (solid) and **Signal line** (dashed) with optional **histogram** (TSI − Signal).
* **Horizontal bands** at `exitHigh` and `exitLow`.
* **Labels**:
* **Exit Long** appears when long-side momentum breaks down (below `exitLow`, plus any enabled filters).
* **Exit Short** appears when short-side momentum breaks down (above `exitHigh`, plus any enabled filters).
**Alerts (stable names):**
* **WolfExit — Exit Long**
* **WolfExit — Exit Short**
---
## Non-repainting behavior (what to expect)
* The oscillator is computed with **EMAs on current timeframe**—no higher-timeframe lookahead, no repaint.
* **Intrabar**: TSI/Signal can fluctuate; use **bar-close evaluation** (and alert setting “Once per bar close”) to lock signals.
* If you enable the EMA filter, that check is also evaluated at bar close.
---
## Every input explained (and how changing it alters behavior)
### Momentum engine (TSI)
* **TSI Long EMA Length (`tsiLongLen`, default 25)**
Higher = smoother, slower momentum; fewer signals. Lower = twitchier, more signals.
* **TSI Short EMA Length (`tsiShortLen`, default 13)**
Fine-tunes responsiveness on top of the long length. Lower short → snappier TSI.
* **TSI Signal Line Length (`tsisigLen`, default 7)**
Higher = slower signal line (harder to cross) → fewer signals. Lower = easier crosses → more signals.
### Thresholds (the bands)
* **Exit Threshold High (`exitHigh`, default +60)**
Raise to demand **stronger** overbought before signaling short exits / long profit-takes. Lower to trigger sooner.
* **Exit Threshold Low (`exitLow`, default −60)**
Raise (toward 0) to trigger **earlier** on longs; lower (more negative) to wait for deeper downside stretch.
### Confirmation layers
* **Require Signal Line Crossover (`enableSignalX`, default true)**
On = TSI must cross its signal (same direction as exit) → **filters out shallow wiggles**. Off = faster, more frequent exits.
* **Enable EMA Confirmation Filter (`enableEMAFilter`, default true)**
On = require **price < EMA** for **Exit Long** and **price > EMA** for **Exit Short**.
* **EMA Exit Confirmation Length (`exitEMALen`, default 50)**
Higher = **trendier** filter (harder to flip) → fewer exits; Lower = more reactive → more exits.
### Visuals
* **Show Histogram (`showHist`)**
On = quick visual for TSI–Signal spread (helps spot weakening momentum before a cross).
* **Plot Exit Signals (`showSignals`)**
Toggle labels if you only want the lines/bands with alerts.
---
## Tuning recipes (quick, practical)
* **Strong trend days (avoid premature exits)**
* Keep **`enableSignalX = true`** and **`enableEMAFilter = true`**
* Increase **`exitEMALen`** (e.g., 80)
* Consider raising **`exitHigh`** to 65–70 (and lowering **`exitLow`** to −65/−70)
* **Choppy/range days (exit faster, take the cash)**
* **`enableEMAFilter = false`** (don’t wait for price filter)
* **`enableSignalX`** optional; try off for quicker responses
* Bring bands closer to **±50** to take profits earlier
* **Scalping / lower timeframes**
* Shorten **TSI lengths** a bit (e.g., 21/9/5)
* Consider **`exitHigh=55 / exitLow=-55`**
* Keep **histogram on** to visualize momentum flip risk
* **Swing trading / higher timeframes**
* Lengthen **TSI** (e.g., 35/21/9) and **`exitEMALen`** (e.g., 100)
* Wider bands (±65 to ±75) to catch bigger moves before exiting
---
## Playbooks (how to actually trade it)
* **Entry from ABS NR FS, exit with Wolf**
* Take entries from **ABS NR — Fail-Safe Confirm** (triangle).
* Use **Wolf Exit** to scale out: 50% on first exit label, trail remainder with price/EMA or your stop logic.
* **Pyramid & protect**
* Add on re-accelerations (TSI pulls back toward zero without breaching the opposite band).
* The first **Exit** signal → take partial, raise stop to last higher low / lower high.
* **Mean-reversion fade management**
* When fading with ABS NR (KC band pokes + stretched |Z|), target the first opposite **Exit** signal as your “don’t overstay” cue.
---
## Suggested starting points
* **Day trading (5–15m):**
* TSI: **25 / 13 / 7** (default)
* Bands: **+60 / −60**
* Confirmations: **SignalX = on**, **EMA Filter = on**, **EMA Len = 50**
* Alerts: **Once per bar close**
* **Scalping (1–3m):**
* TSI: **21 / 9 / 5**
* Bands: **±55**
* Confirmations: **SignalX = on**, **EMA Filter = off** (optional for speed)
* **Swing (1h–D):**
* TSI: **35 / 21 / 9**
* Bands: **+65 / −65** (or ±70)
* Confirmations: **SignalX = on**, **EMA Filter = on**, **EMA Len = 100**
---
## Best-practice pairings
* **Entries:** **ABS NR — Fail-Safe Confirm (v4.2.2)**
* Take ABS triangles; let Wolf standardize exits so you’re not guessing.
* **Context:** **ABS Companion Oscillator**
* Prefer holding longer when the companion stays above (for longs) or below (for shorts) its neutral band and **no EXH tag** prints.
* If companion flags **EXH** against your position, tighten stops; Wolf’s next exit signal becomes high priority.
---
## Notes & disclaimers
* This is an **exit signal tool**, not a strategy or broker.
* Signals are strongest when aligned with your **entry logic** and a **risk framework** (position sizing, stops, partials).
* All evaluations are **current timeframe**; no higher-timeframe lookahead is used.
* Markets change—tune the bands and confirmations per symbol/timeframe.
---
**Tip:** Keep your alerts simple—one for **Exit Long**, one for **Exit Short**, **Once per bar close**. Use partial exits on the first signal, and let your stop/trailing logic handle the rest.
Trend+Volume Confluence IndicatorScalper and swing trading signals: use the 15–30 minute charts for scalps and the 4–8 hour charts for swings. Add the Money Flow Index (MFI) for extra confluence. In an uptrend, if the MFI is at or above the halfway mark and rising, take the long. In a downtrend, if the MFI is at or below the halfway mark and falling, take the short.
Daily Low Risk Calculator( Swing trading)For the people watching Morgan Trades and want to use his filters and scans, this one is very similar to the one he uses on TC2000. Put in your account size, the % you would want to risk per trade (I would recommend not more than 1%) and is will show you how many shares to buy so you don't have to do the maths yourself anymore! Awesome for people who swing trade stocks.
X OR AVWAPX OR AVWAP is a multi-layered market mapping tool designed to combine Opening Range analysis, Anchored VWAP (AVWAP) positioning, and SMA markers into a unified visual framework.
Opening Range (OR) Mapping
The indicator supports two independent Opening Ranges, allowing traders to define both a primary range and a micro range for finer analysis. This is particularly effective when viewing lower timeframes, where a smaller OR inside the larger OR reveals intraday microstructure.
OR #1 and OR #2 each have configurable session times, colors, and optional midpoint lines.
Historical OR boxes can be shown or hidden, with the ability to extend levels forward in time.
Optional Fibonacci-based expansion levels (0.5x, 1x, 1.5x, 2x, 3x OR) are available for projecting breakout targets and retracement zones.
Traders can toggle high/low lines, midpoints, and labels independently for cleaner chart presentation.
Anchored VWAP (AVWAP) Layers
To track institutional capital flow and session bias, the indicator offers three separate AVWAP anchors, each independently controlled:
Can be anchored to custom events, sessions, or manual reference points.
Enables granular capital flow mapping down to 4-hour increments, helping traders align intraday trades with broader directional bias.
Each AVWAP can be toggled on/off to avoid clutter and isolate the most relevant flow line for the current setup.
SMA Markers
For additional context, simple moving average markers can be displayed alongside OR and AVWAP structure, helping gauge trend direction and mean-reversion potential.
Use Case
This tool is built for traders who want to combine structure, flow, and trend in a single view. On lower timeframes, the dual OR feature allows for a “range-within-a-range” perspective, revealing short-term liquidity pockets inside the day’s primary auction boundaries. The multi-anchor AVWAPs track how price interacts with session-based weighted averages, highlighting points where institutional bias may shift. When combined with SMA markers, the trader gains a comprehensive map for scalping, intraday swing trading, and capital flow tracking.
Triple Pivot Fib Levels Multi-Timeframe# 📈 Triple Pivot Fibonacci Levels Multi-Timeframe
## 🎯 Description
Advanced indicator that displays **three independent Fibonacci level sets** across different timeframes, enabling identification of **confluence zones** and key levels for multi-temporal trading strategies.
## ✨ Key Features
- **🔵 Fibonacci 1**: Primary analysis (default: Daily)
- **🟠 Fibonacci 2**: Intermediate analysis (default: 1H)
- **🟢 Fibonacci 3**: Complementary analysis (default: 4H)
## 📊 Included Levels
**Retracements**: 0%, 38.2%, 50%, 61.8%, 79%, 89%, 100%
**Extensions**: 112%, 127%, 162%
## ⚙️ Features
✅ **Multi-timeframe**: Each Fibonacci uses pivots from different timeframes
✅ **Full customization**: Colors, line thickness, label positioning
✅ **Alert system**: Notifications when price touches levels
✅ **Invert Fibonacci**: For bullish or bearish trends
✅ **Countdown**: Timer for current candle close
✅ **Memory optimization**: Automatic deletion of previous elements
## 🎨 Customization Options
- Colors and styles for each Fibonacci set
- Label positioning (right/left/both)
- Adjustable alert sensitivity
- Configurable pivot timeframes
## 💡 Strategic Usage
Perfect for identifying:
- **Confluence zones** between different timeframes
- **Multi-temporal support/resistance** levels
- **Precise entry/exit points**
- **Price targets** for take profits
## 🚀 Ideal For
- Swing Trading
- Multi-timeframe Day Trading
- Advanced Technical Analysis
- Fibonacci Confluence Strategies
---
*Complete indicator for traders who want to harness the power of Fibonacci levels across multiple time dimensions.*
Double EMA & SMAThis indicator plots two Exponential Moving Averages (EMAs) and one Simple Moving Average (SMA) directly on the price chart to help identify market trends and momentum shifts.
By default, it displays:
• EMA 1 (10-period) – short-term trend
• EMA 2 (20-period) – medium-term trend
• SMA (50-period) – broader trend baseline
The combination allows traders to quickly spot trend direction, potential reversal points, and areas of dynamic support or resistance. Suitable for scalping, swing trading, and longer-term analysis across any market.
BuySell-byALHELWANI🔱 BuySell-byALHELWANI | مؤشر التغيرات الاتجاهية الذكية
BuySell-byALHELWANI هو مؤشر احترافي متقدّم يرصد نقاط الانعكاس الحقيقية في حركة السوق، باستخدام خوارزمية تعتمد على تحليل القمم والقيعان الهيكلية للسعر (Structure-Based Detection) وليس على مؤشرات تقليدية.
المؤشر مبني على مكتبة signalLib_yashgode9 القوية، مع تخصيص كامل لأسلوب العرض والتنبيهات.
⚙️ ما يقدمه المؤشر:
🔹 إشارات واضحة للشراء والبيع تعتمد على كسر هيكل السوق.
🔹 تخصيص مرن للعمق والانحراف وخطوات التراجع (Backstep) لتحديد الدقة المطلوبة.
🔹 علامات ذكية (Labels) تظهر مباشرة على الشارت عند كل نقطة قرار.
🔹 تنبيهات تلقائية فورية عند كل تغير في الاتجاه (Buy / Sell).
🧠 الآلية المستخدمة:
DEPTH_ENGINE: يتحكم في مدى عمق النظر لحركة السعر.
DEVIATION_ENGINE: يحدد المسافة المطلوبة لتأكيد نقطة الانعكاس.
BACKSTEP_ENGINE: يضمن أن كل إشارة تستند إلى تغير هيكلي حقيقي في الاتجاه.
📌 المميزات:
✅ لا يعيد الرسم (No Repaint)
✅ يعمل على كل الأطر الزمنية وكل الأسواق (فوركس، مؤشرات، كريبتو، أسهم)
✅ تصميم بصري مرن (ألوان، حجم، شفافية)
✅ يدعم الاستخدام في السكالبينغ والسوينغ
ملاحظة:
المؤشر لا يعطي إشارات عشوائية، بل يستند إلى منطق السعر الحقيقي عبر تتبع التغيرات الحركية للسوق.
يُفضّل استخدامه مع خطة تداول واضحة وإدارة رأس مال صارمة.
🔱 BuySell-byALHELWANI | Smart Reversal Detection Indicator
BuySell-byALHELWANI is a high-precision, structure-based reversal indicator designed to identify true directional shifts in the market. Unlike traditional indicators, it doesn't rely on lagging oscillators but uses real-time swing analysis to detect institutional-level pivot points.
Powered by the robust signalLib_yashgode9, this tool is optimized for traders who seek clarity, timing, and strategic control.
⚙️ Core Engine Features:
🔹 Accurate Buy/Sell signals generated from structural highs and lows.
🔹 Adjustable sensitivity using:
DEPTH_ENGINE: Defines how deep the algorithm looks into past swings.
DEVIATION_ENGINE: Sets the deviation required to confirm a structural change.
BACKSTEP_ENGINE: Controls how many bars are validated before confirming a pivot.
🧠 What It Does:
🚩 Detects market structure shifts and confirms them visually.
🏷️ Plots clear Buy-point / Sell-point labels directly on the chart.
🔔 Sends real-time alerts when a directional change is confirmed.
🎯 No repainting – what you see is reliable and final.
✅ Key Benefits:
Works on all timeframes and all asset classes (FX, crypto, indices, stocks).
Fully customizable: colors, label size, transparency.
Ideal for scalping, swing trading, and strategy automation.
High visual clarity with minimal noise.
🔐 Note:
This script is designed for serious traders.
It highlights real market intent, especially when used with trendlines, zones, and volume analysis.
Pair it with disciplined risk management for best results.
Institutional Momentum Zones (ADX+ROC+DI+MACD+Filters)Institutional Momentum Zones (ADX + ROC + DI + MACD + Filters)
This indicator is designed to help traders visually identify Bullish, Neutral, and Bearish momentum zones on Nifty, indices, or any liquid asset, using a rules-based, institutional-style approach.
It combines multiple professional-grade momentum and trend filters into a single framework:
ADX (Average Directional Index) – Measures trend strength, filters out choppy conditions.
Directional Indicators (+DI / –DI) – Confirms whether bulls or bears are in control.
ROC (Rate of Change) – Quantifies momentum speed and direction.
MACD (optional) – Adds confirmation by checking multi-timeframe momentum alignment.
EMA Filters (optional) – Ensures price is in alignment with long-term trend bias.
Supertrend (optional) – Can be enabled for additional trend confirmation.
How it works:
Bullish Zone (Green) → Strong trend (ADX > threshold) + upward momentum (ROC > 0, +DI > –DI) + optional EMA/MACD/Supertrend confirmation.
Bearish Zone (Red) → Strong trend (ADX > threshold) + downward momentum (ROC < 0, –DI > +DI) + optional EMA/MACD/Supertrend confirmation.
Neutral Zone (Yellow) → Low trend strength (ADX < threshold) or mixed momentum signals.
Features:
Automatic background coloring for zone detection.
On-chart labels marking new zone changes.
EMA50 / EMA200 and Supertrend overlay options.
Signal markers for bullish/bearish entries.
Info panel with live ADX, ROC, DI values, and MACD histogram.
Alert conditions for zone changes (Bull, Bear, Neutral).
Best used for:
Index momentum tracking (e.g., Nifty, Bank Nifty, Dow, S&P500)
Swing trading & positional trading strategies
Filtering trades to avoid entering during low-momentum chop
Tip: For Nifty positional trading, use Daily or 4H charts with EMA & MACD filters enabled for cleaner, high-confidence signals.
Position Sizing Risk TablePosition Sizing Risk Table - swing trading. Allowing for a 0,25; 0,5 and 1% risk based on NAV
MomentumSync-PSAR: RSI·ADX Filtered 3-Tier Exit StrategyTriSAR-E3 is a precision swing trading strategy designed to capitalize on early trend reversals using a Triple Confirmation Model. It triggers entries based on an early Parabolic SAR bullish flip, supported by RSI strength and ADX trend confirmation, ensuring momentum-backed participation.
Exits are tactically managed through a 3-step staged exit after a PSAR bearish reversal is detected, allowing gradual profit booking and downside protection.
This balanced approach captures trend moves early while intelligently scaling out, making it suitable for directional traders seeking both agility and control.
Dynamic 5DMA/EMA with Color for Multiple Products🔹 Dynamic 5DMA/EMA with Slope-Based Coloring (All Timeframes)
This indicator plots a dynamic 5-period moving average that adapts intelligently to your chart's timeframe and product type — giving you a clean, slope-sensitive visual edge across intraday, daily, and weekly views.
✅ Key Features:
📈 Dynamic MA Length Scaling:
On intraday timeframes, the MA adjusts for your selected market session (RTH, ETH, VIX, or Futures), calculating a true 5-day average based on actual session length — not just a flat bar count.
🔄 Automatic Timeframe Detection:
Daily Chart: Uses standard 5DMA or 5EMA.
Weekly Chart: Applies a true 5-week MA.
Intraday Charts: Converts 5 days into bar-length equivalent dynamically.
🎨 Color-Coded Slope Logic:
Green = Rising MA (bullish slope)
Red = Falling MA (bearish slope)
Neutral slope = previous color held for visual continuity
No more guessing — direction is instantly clear.
⚠️ Built-In Slope Flip Alerts:
Set alerts when the slope of the MA turns up or down. Ideal for timing pullback entries or exits across any product.
⚙️ Session Settings for Proper Scaling:
Choose your product's market structure to ensure accurate 5-day conversion on intraday charts:
Stocks - RTH: 390 mins/day
Stocks - ETH: 780 mins/day
VIX: 855 mins/day
Futures: 1440 mins/day
This ensures the MA reflects 5 full trading days, regardless of session irregularities or bar interval.
📌 Why Use This Indicator?
Most MAs misrepresent trend direction on intraday charts because they assume static daily bar counts. This tool corrects that, then adds slope-based coloring to give you a fast, visual read on short-term momentum. Whether you’re swing trading SPY, scalping VIX, or position trading futures, this indicator keeps your view aligned with how institutions see moving averages across timeframes.
🔧 Best For:
VIX & volatility traders
Short-term SPY/SPX traders
Swing traders who value clean setups
Anyone wanting a true 5-day trend anchor on any chart
Information Theory Market AnalysisINFORMATION THEORY MARKET ANALYSIS
OVERVIEW
This indicator applies mathematical concepts from information theory to analyze market behavior, measuring the randomness and predictability of price and volume movements through entropy calculations. Unlike traditional technical indicators, it provides insight into market structure and regime changes.
KEY COMPONENTS
Four Main Signals:
• Price Entropy (Deep Blue): Measures randomness in price movements
• Volume Entropy (Bright Blue): Analyzes volume pattern predictability
• Entropy MACD (Purple): Shows relationship between price and volume entropy
• SEMM (Royal Blue): Stochastic Entropy Market Monitor - overall market randomness gauge
Market State Detection:
The indicator identifies seven distinct market states:
• Strong Trending (SEMM < 0.1)
• Weak Trending (0.1-0.2)
• Neutral (0.2-0.3)
• Moderate Random (0.3-0.5)
• High Randomness (0.5-0.8)
• Very Random (0.8-1.0)
• Chaotic (>1.0)
KEY FEATURES
Advanced Analytics:
• Signal Strength Confluence: 0-5 scale measuring alignment of multiple factors
• Entropy Crossovers: Detects shifts between accumulation and distribution phases
• Extreme Readings: Identifies statistical outliers for potential reversals
• Trend Bias Analysis: Directional momentum assessment
Information Dashboard:
• Real-time entropy values and market state
• Signal strength indicator with visual highlighting
• Trend bias with directional arrows
• Color-coded alerts for extreme conditions
Customizable Display:
• Adjustable SEMM scaling (5x to 100x) for optimal visibility
• Multiple line styles: Smooth, Stepped, Dotted
• 9 table positions with 3 size options
• Professional blue color scheme with transparency controls
Comprehensive Alert System - 15 Alert Types Including:
• Extreme entropy readings (price/volume)
• Crossover signals (dominance shifts)
• Market state changes (trending ↔ random)
• High confluence signals (3+ factors aligned)
HOW TO USE
Reading the Signals:
• Entropy Values > ±25: Strong structural signals
• Entropy Values > ±40: Extreme readings, potential reversals
• SEMM < 0.2: Trending market favors directional strategies
• SEMM > 0.5: Random market favors range/scalping strategies
Signal Confluence:
Look for multiple factors aligning:
• Signal Strength ≥ 3.0 for higher probability setups
• Background highlighting indicates confluence
• Table shows real-time strength assessment
Timeframe Optimization:
• Short-term (1m-15m): Entropy Length 14-22, Sensitivity 3-5
• Swing Trading (1H-4H): Default settings optimal
• Position Trading (Daily+): Entropy Length 34-55, Sensitivity 8-12
EDUCATIONAL APPLICATIONS
Market Structure Analysis:
• Understand when markets are trending vs. ranging
• Identify accumulation and distribution phases
• Recognize extreme market conditions
• Measure information content in price movements
Information Theory Concepts:
• Binary entropy calculations applied to financial data
• Probability distribution analysis of returns
• Statistical ranking and percentile analysis
• Momentum-adjusted randomness measurement
TECHNICAL DETAILS
Calculations:
• Uses binary entropy formula: -
• Percentile ranking across multiple timeframes
• Volume-weighted probability distributions
• RSI-adjusted momentum entropy (SEMM)
Customization Options:
• Entropy Length: 5-100 bars (default: 22)
• Average Length: 10-200 bars (default: 88)
• Sensitivity: 1.0-20.0 (default: 5.0, lower = more sensitive)
• SEMM Scaling: 5.0-100.0x (default: 30.0)
IMPORTANT NOTES
Risk Considerations:
• Indicator measures probabilities, not certainties
• High SEMM values (>0.5) suggest increased market randomness
• Extreme readings may persist longer than expected
• Always combine with proper risk management
Educational Purpose:
This indicator is designed for:
• Market structure analysis and education
• Understanding information theory applications in finance
• Developing probabilistic thinking about markets
• Research and analytical purposes
Performance Tips:
• Allow 200+ bars for proper initialization
• Adjust scaling and transparency for optimal visibility
• Use confluence signals for higher probability analysis
• Consider multiple timeframes for comprehensive analysis
DISCLAIMER
This indicator is for educational and analytical purposes. It does not constitute financial advice. Past performance does not guarantee future results. Always conduct your own research and consider your risk tolerance before making trading decisions.
Version: 5.0
Category: Oscillators, Volume, Market Structure
Best For: All timeframes, trending and ranging markets
Complexity: Intermediate to Advanced
RSI and MACD Table with Cross [BY UKT]This script displays a compact, real-time dashboard of RSI and MACD values across multiple timeframes, along with the MACD cross direction (↑ / ↓) to help traders quickly assess momentum and trend strength.
▶️ Key Features:
RSI values for Weekly, Daily, 1H, 30M, 15M, 5M, and 3M
MACD values and cross status for each timeframe
Color-coded values for visual clarity (Green = Bullish, Red = Bearish)
Useful for both scalping and swing trading to get a multi-timeframe momentum overview
📌 Works on all asset classes: stocks, forex, crypto, and indices
👨💻 Developed in Pine Script v5